// eslint.config.js
import { defineConfig } from "eslint-define-config";
import pluginVue from "eslint-plugin-vue";
import prettier from "@vue/eslint-config-prettier";

export default defineConfig({
  root: true,
  extends: [
    "plugin:vue/vue3-strongly-recommended",
    "eslint:recommended",
    "@vue/eslint-config-prettier",
  ],
  env: {
    "vue/setup-compiler-macros": true,
  },
  plugins: [pluginVue],
  rules: {
    ...prettier.rules,
    // 这里可以添加其他自定义规则
  },
});
